﻿using System;
using System.ComponentModel.DataAnnotations;
using VisionCloud.Core.Model.Enums;

namespace VisionCloud.Domain.DtoModel.Applet.RequestDto
{
    public class QueryHouseMapDto
    {
        /// <summary>
        /// 项目Id
        /// </summary>
        [Required]
        public Guid? ProjectId { get; set; }

        /// <summary>
        /// 楼栋
        /// </summary>
        [Required]
        public string Building { get; set; }

        /// <summary>
        /// 楼层
        /// </summary>
        [Required]
        public string Floor { get; set; }
    }

    public class QueryReportConditionDto : QueryHouseMapDto
    {
        /// <summary>
        /// 任务类型(1=实测实量任务,2=建模任务)
        /// </summary>
        [Required]
        public MeasureTypeEnum MeasureType { get; set; } = MeasureTypeEnum.实测实量任务;
    }

    /// <summary>
    /// 获取最近生成报告dto
    /// </summary>
    public class QueryRencentlyReportDto
    {
        /// <summary>
        /// 任务类型(1=实测实量任务,2=建模任务)
        /// </summary>
        [Required]
        public MeasureTypeEnum MeasureType { get; set; } = MeasureTypeEnum.实测实量任务;

        /// <summary>
        /// 时间限制条件：
        /// 不限 = 0,
        /// 近一周 = 1,
        /// 近一个月 = 2,
        /// 近半年 = 3
        /// </summary>
        public DateConditionEnum DateCondition { get; set; } = DateConditionEnum.近一周;
    }
}